import App from './App'
import {
	createSSRApp
} from 'vue'
import common from "./utils/common.js"
import api from "./api/api.js"
uni.$common = common
uni.$api = api

export function createApp() {
	const app = createSSRApp(App)
	app.config.globalProperties.$http = () => {};

	//api
	app.config.globalProperties.$api = api //有提示
	//工具库
	app.config.globalProperties.$common = common

	return {
		app
	}
}